package games.gameObjects;

import gameUtils.Coordinate;
import gameUtils.GameMath;

import java.awt.Point;
import java.io.IOException;

import pt.iul.poo.image.SimpleImage;

public class Wall extends SimpleTDObject{

	public static final String TD_CLASS = "Wall"; 
	public static final int PRIORITY = 10;
	
	private SimpleImage image;

	public Wall(final Coordinate c){
		super(c, PRIORITY);
		try {
			Point p = GameMath.convertToPoint(c);
			image = new SimpleImage("Images//Black.png",(int)p.getX(),(int)p.getY(),PRIORITY);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	@Override
	public SimpleImage getImage() {
		return this.image;
	}

	@Override
	public String toString() {
		return getTDClass();
	}
	@Override
	public String getTDClass() {
		return TD_CLASS;
	}
}
